<?php
// $Id alexasitestatsbutton.tpl.php,v 1.1 2010/10/11 15:21:53 tungt Exp $

/**
 * @file
 * Theme for alexa site stats.
 */

$site_mapping = array (
  '120 x 95' => 'http://xslt.alexa.com/site_stats/js/s/a?url=',
  '120 x 240' => 'http://xslt.alexa.com/site_stats/js/s/b?url=',
  '468 x 60' => 'http://xslt.alexa.com/site_stats/js/s/c?url=',
);
?>
<a href="http://www.alexa.com/siteinfo/<?php print $siteurl?>">
<script type='text/javascript' language='JavaScript' src='<?php print $site_mapping[$type] . $siteurl; ?>'>
</script>
</a>